<?php

class DictionaryController extends Zend_Controller_Action
{

	private $_dictTable;
	
    public function init()
    {
        $this->dictTable = new Default_Model_DbTable_DictionaryTable();
    }

    public function indexAction()
    {
        $this->view->dicts =  $this->dictTable->fetchAll();
    }

    public function saveAction()
    {
    	$ids = $this->_getParam("ids", array());
    	$this->dictTable->enableDicts($ids);
        $this->_redirect("/dictionary");
    }


}



